<template>
	<view class="index-container">
		<view class="scene-block" hover-class="btn-hover" @click.stop="goMenuPage(1)">
			<text>打包带走</text>
		</view>
		<view class="scene-block" hover-class="btn-hover" @click.stop="goMenuPage(2)">
			<text>外卖下单</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {

		},
		methods: {
			// 前往菜单页
			goMenuPage(type) {
				if (type === 1) {
					this.$store.commit('handleDiningMode', 'wx_zq')
				} else {
					this.$store.commit('handleDiningMode', 'wx_out')
				}
				
				uni.navigateTo({
					url: '/pages/menu/menu'
				});
				
			}
		}
	}
</script>

<style lang="less" scoped>
	@import '~@/common/styles/common.less';
	@import './index.less';
</style>
